<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/20
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../css/home.css">
    <link rel="stylesheet" href="../css/common.css">
</head>
<body>

<jsp:include page="top.jsp"></jsp:include>
<div class="content">
    <div class="content-left float-left">
        <div class="banner-title">教新动态</div>
        <div class="content-left-content">
            <div class="float-left"><img src="../img/m331.jpg" height="230" width="268"/></div>
            <div class="float-left">
                <c:forEach items="${newsList}" var="news">
                    <div>
                        <h5>${news.title}</h5>
                        <p>${news.content}</p>
                    </div>
                </c:forEach>
            </div>
        </div>
    </div>

    <div class="content-right float-right">
        <div class="banner-title">产品展示</div>
        <div class="content-right-content">
            <c:forEach items="${productList}" var="product" varStatus="count">
            <c:if test="${count.count==1}">
            <div class="float-left">
                </c:if>
                <c:if test="${count.count!=1}">
                <div class="float-right">
                    </c:if>
                    <div><img src="${product.imgHref}" height="300" width="300"/></div>
                    <div>
                        <div>${product.name}</div>
                        <div>${product.content}</div>
                    </div>
                </div>
                </c:forEach>
            </div>
        </div>
    </div>
    <c:if test="${aa==1}">
    你想输出一个1
    </c:if>
    <c:if test="${aa!=1}">
    你打算什么都不多
    </c:if>


    <jsp:include page="foot.jsp"></jsp:include>
</body>
</body>
</html>
